# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=nasnum
pkgver=5.df5df19
pkgrel=2
groups=('blackarch' 'blackarch-recon')
pkgdesc='Script to enumerate network attached storages.'
arch=('any')
url='https://github.com/tcstool/nasnum.git'
license=('GPL3')
depends=('bash' 'smbclient' 'ncftp' 'nfs-utils' 'net-snmp')
makedepends=('git')
source=("git+https://github.com/tcstool/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 "$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}

